﻿using System.Web.Mvc;

namespace MyAMS.WebServer.ActionFilter
{
    /// <summary>
    /// 动作过滤器标准
    /// </summary>
    public interface IActionFilterCriteria
    {
        /// <summary>
        /// 决定某控制器上下文和动作说明器是否符合当前标准
        /// </summary>
        /// <param name="controllerContext">控制器上下文</param>
        /// <param name="actionDescriptor">动作说明器</param>
        /// <returns></returns>
        bool Match(ControllerContext controllerContext, ActionDescriptor actionDescriptor);
    }
}
